import request from '@/utils/request'

export function getList(data) {
  return request({
    url: `/moniter-lastdata/page/${data.current}/${data.size}`,
    method: 'get'
  })
}
/* 同步数据 */
export function ayncData(){
    return request({
        url: `/moniter-lastdata/sync-save`,
        method: 'get'
      })
}
/* 获取主机最新数据 */
export function getHost(id) {
  return request({
    url: `/moniter-lastdata/hostid/${id}`,
    method: 'get'
  })
}
/* 获取监控项最新数据 */
export function getItem(id) {
  return request({
    url: `/sys-user/itemid/${id}`,
    method: 'get'
  })
}
export function getAll() {
  return request({
    url: `/moniter-lastdata`,
    method: 'get'
  })
}
